module.exports = function (router) {
  router.get('/api/getSessions', () => {
    console.log('controller')
    console.log('session')
  }, {
    shouldLogin: true
  })

  router.get('/api/upload_sign', () => {
    console.log('controller')
  })

  router.post('/api/upload_file', () => {
    console.log('controller')
  })

  router.use('/api', router => {
    // 这个效果就相当于直接在这里写router.get(); router.post()
    require('./exam_router')(router)
    require('./question_router')(router)
  })
}